package com.jinzecloud.fiction.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jinzecloud.fiction.bean.TbAdmin;
import com.jinzecloud.fiction.utils.PageUtils;
import com.jinzecloud.fiction.utils.R;
import com.jinzecloud.fiction.vo.TbAdminVo;
import com.jinzecloud.fiction.vo.TbAdminVos;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.net.http.HttpResponse;
import java.util.Map;

/**
 * 后台管理员
 *
 * @author ??
 * @email 1971240051@qq.com
 * @date 2023-10-19 19:38:04
 */
public interface TbAdminService extends IService<TbAdmin> {

    PageUtils queryPage(Map<String, Object> params);

    void updateStatus(TbAdmin tbAdmin);

    void saveTbAdmin(TbAdmin tbAdmin);

    void updateTbAdminById(TbAdmin tbAdmin);

    R getByUsernameAndPassword(TbAdminVos tbAdminVos) throws Exception;

    void getCode(HttpServletRequest request,HttpServletResponse response, String uuid) throws Exception;

    R Logout(String token);

    TbAdminVo getUserInfo(String token);
}

